package com.kfm.review;

public class Constructor {
    {
        a = 5;
        System.out.println("{} 1");
    }
    {
        a = 4;
        System.out.println("{}");
    }
    int a = 1;
    public Constructor(int a){
        this.a = a;
        System.out.println("Constructor(int b)");
    }
    public Constructor(){
        System.out.println("无参构造");
    }
    static {
        System.out.println("static{}");
    }
    public static void main(String[] args) {

        Constructor c1 = new Constructor(10);
        System.out.println(c1.a);

    }

}